$gwx_XC_29=function(_,_v,_n,_p,_s,_wp,_wl,$gwn,$gwl,$gwh,wh,$gstack,$gwrt,gra,grb,TestTest,wfor,_ca,_da,_r,_rz,_o,_oz,_1,_1z,_2,_2z,_m,_mz,nv_getDate,nv_getRegExp,nv_console,nv_parseInt,nv_parseFloat,nv_isNaN,nv_isFinite,nv_decodeURI,nv_decodeURIComponent,nv_encodeURI,nv_encodeURIComponent,$gdc,nv_JSON,_af,_gv,_ai,_grp,_gd,_gapi,$ixc,_ic,_w,_ev,_tsd){return function(path,global){
if(typeof global==='undefined'){if (typeof __GWX_GLOBAL__==='undefined')global={};else global=__GWX_GLOBAL__;}if(typeof __WXML_GLOBAL__ === 'undefined') {__WXML_GLOBAL__={};
}__WXML_GLOBAL__.modules = __WXML_GLOBAL__.modules || {};
var e_={}
if(typeof(global.entrys)==='undefined')global.entrys={};e_=global.entrys;
var d_={}
if(typeof(global.defines)==='undefined')global.defines={};d_=global.defines;
var f_={}
if(typeof(global.modules)==='undefined')global.modules={};f_=global.modules || {};
var p_={}
__WXML_GLOBAL__.ops_cached = __WXML_GLOBAL__.ops_cached || {}
__WXML_GLOBAL__.ops_set = __WXML_GLOBAL__.ops_set || {};
__WXML_GLOBAL__.ops_init = __WXML_GLOBAL__.ops_init || {};
var z=__WXML_GLOBAL__.ops_set.$gwx_XC_29 || [];
function gz$gwx_XC_29_1(){
if( __WXML_GLOBAL__.ops_cached.$gwx_XC_29_1)return __WXML_GLOBAL__.ops_cached.$gwx_XC_29_1
__WXML_GLOBAL__.ops_cached.$gwx_XC_29_1=[];
(function(z){var a=11;function Z(ops){z.push(ops)}
Z([1,true])
Z([[7],[3,'color']])
Z([[7],[3,'title']])
Z([[7],[3,'waiting']])
Z([[2,'&&'],[[2,'!'],[[7],[3,'waiting']]],[[7],[3,'is_position']]])
Z([3,'nearbyHotel'])
Z([[7],[3,'list']])
Z([[7],[3,'index']])
Z([[2,'!='],[[6],[[7],[3,'item']],[3,'service_telephone']],[1,null]])
Z([[7],[3,'empty']])
Z([[2,'&&'],[[2,'&&'],[[2,'!'],[[7],[3,'hasMore']]],[[2,'!'],[[7],[3,'empty']]]],[[2,'!'],[[7],[3,'load']]]])
Z([[2,'&&'],[[7],[3,'load']],[[2,'!'],[[7],[3,'empty']]]])
Z([[2,'&&'],[[2,'!'],[[7],[3,'is_position']]],[[2,'!'],[[7],[3,'waiting']]]])
})(__WXML_GLOBAL__.ops_cached.$gwx_XC_29_1);return __WXML_GLOBAL__.ops_cached.$gwx_XC_29_1
}
__WXML_GLOBAL__.ops_set.$gwx_XC_29=z;
__WXML_GLOBAL__.ops_init.$gwx_XC_29=true;
var x=['./pages/nearbyHotel/nearbyHotel.wxml'];d_[x[0]]={}
var m0=function(e,s,r,gg){
var z=gz$gwx_XC_29_1()
var hMI=_mz(z,'navigation-bar',['back',0,'color',1,'title',1],[],e,s,gg)
_(r,hMI)
var oNI=_n('waiting-pop')
_rz(z,oNI,'waiting',3,e,s,gg)
_(r,oNI)
var fKI=_v()
_(r,fKI)
if(_oz(z,4,e,s,gg)){fKI.wxVkey=1
var cOI=_n('view')
_rz(z,cOI,'class',5,e,s,gg)
var tSI=_v()
_(cOI,tSI)
var eTI=function(oVI,bUI,xWI,gg){
var fYI=_v()
_(xWI,fYI)
if(_oz(z,8,oVI,bUI,gg)){fYI.wxVkey=1
}
fYI.wxXCkey=1
return xWI
}
tSI.wxXCkey=2
_2z(z,6,eTI,e,s,gg,tSI,'item','index','{{index}}')
var oPI=_v()
_(cOI,oPI)
if(_oz(z,9,e,s,gg)){oPI.wxVkey=1
}
var lQI=_v()
_(cOI,lQI)
if(_oz(z,10,e,s,gg)){lQI.wxVkey=1
}
var aRI=_v()
_(cOI,aRI)
if(_oz(z,11,e,s,gg)){aRI.wxVkey=1
}
oPI.wxXCkey=1
lQI.wxXCkey=1
aRI.wxXCkey=1
_(fKI,cOI)
}
var cLI=_v()
_(r,cLI)
if(_oz(z,12,e,s,gg)){cLI.wxVkey=1
}
fKI.wxXCkey=1
cLI.wxXCkey=1
return r
}
e_[x[0]]=e_[x[0]]||{f:m0,j:[],i:[],ti:[],ic:[]}
if(path&&e_[path]){
return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
;g="$gwx_XC_29";var main=e_[path].f
if (typeof global==="undefined")global={};global.f=$gdc(f_[path],"",1);
try{
main(env,{},root,global);
_tsd(root)
}catch(err){
console.log(err)
}
;g="";
return root;
}
}
}
}(__g.a,__g.b,__g.c,__g.d,__g.e,__g.f,__g.g,__g.h,__g.i,__g.j,__g.k,__g.l,__g.m,__g.n,__g.o,__g.p,__g.q,__g.r,__g.s,__g.t,__g.u,__g.v,__g.w,__g.x,__g.y,__g.z,__g.A,__g.B,__g.C,__g.D,__g.E,__g.F,__g.G,__g.H,__g.I,__g.J,__g.K,__g.L,__g.M,__g.N,__g.O,__g.P,__g.Q,__g.R,__g.S,__g.T,__g.U,__g.V,__g.W,__g.X,__g.Y,__g.Z,__g.aa);if(__vd_version_info__.delayedGwx||false)$gwx_XC_29();	if (__vd_version_info__.delayedGwx) __wxAppCode__['pages/nearbyHotel/nearbyHotel.wxml'] = [$gwx_XC_29, './pages/nearbyHotel/nearbyHotel.wxml'];else __wxAppCode__['pages/nearbyHotel/nearbyHotel.wxml'] = $gwx_XC_29( './pages/nearbyHotel/nearbyHotel.wxml' );
	;__wxRoute = "pages/nearbyHotel/nearbyHotel";__wxRouteBegin = true;__wxAppCurrentFile__="pages/nearbyHotel/nearbyHotel.js";define("pages/nearbyHotel/nearbyHotel.js",function(require,module,exports,window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,XMLHttpRequest,WebSocket,Reporter,webkit,WeixinJSCore){
"use strict";var t=getApp(),a=(require("../../utils/util.js"),1);Page({data:{title:"附近酒店",color:"#FFFFFF",waiting:!0,is_position:"",list:[],lat:"",lng:"",empty:"",hasMore:"",load:""},onLoad:function(t){this.setData({waiting:!0})},onReady:function(){},onShow:function(){var t=this;wx.getLocation({type:"wgs84",success:function(e){var o=e.latitude,n=e.longitude;t.setData({is_position:!0,lat:o,lng:n}),wx.setStorageSync("latitude",o),wx.setStorageSync("longitude",n),a=1,t.getHotelList()},fail:function(a){t.setData({is_position:!1,waiting:!1})}})},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){if(!this.data.hasMore)return!1;a++,this.getHotelList()},getHotelList:function(){var e=this,o=wx.getStorageSync("latitude"),n=wx.getStorageSync("longitude");e.setData({load:!0}),t.ajax({url:"User/User/nearbyHotel",data:{lat:o,lng:n,page:a,row:10},success:function(t){var o=!1,n=!0,i=e.data.list,s=e.data.list;1e3==t.data.code?(i=1==a?t.data.data:s.concat(t.data.data),n=a<t.data.allPage):(0==t.data.count&&(o=!0),n=!1,i=[]),e.setData({load:!1,empty:o,hasMore:n,list:i,waiting:!1})}})},goCallPhone:function(t){var a=t.currentTarget.dataset.phone;wx.makePhoneCall({phoneNumber:a})},goNavigate:function(a){var e=a.currentTarget.dataset.lat,o=a.currentTarget.dataset.lng;wx.openLocation({latitude:parseFloat(e),longitude:parseFloat(o),success:function(t){},fail:function(a){t.showToast("地图打开失败，请退出重试")}})}});
},{isPage:true,isComponent:true,currentFile:'pages/nearbyHotel/nearbyHotel.js'});require("pages/nearbyHotel/nearbyHotel.js");